package com.atguigu.seckill.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.ToString;

@AllArgsConstructor
@Getter
@ToString
public enum CodeResponseEnum {
    //多个枚举元素之间用，分隔
    //通用状态码
    SUCCESS(200,"成功！"),
    ERROR(500,"服务器异常！"),
    //登录状态码
    SESSION_ERROR(500210,"session不存在或者已经失效"),
    LOGIN_ERROR(500211,"登录失败，用户名或密码错误"),
    BIND_ERROR(500212,"绑定异常"),
    MOBILE_ERROR(500213,"手机号码格式错误"),

    //秒杀状态码
    EMPTY_STOCK(500510,"库存不足"),
    DOUBLE_SECKILL(500511,"重复抢购");

    private final  Integer code;
    private final String message;


}
